package com.spring.learn.service.impl;

import com.spring.learn.domain.TbUser;
import com.spring.learn.mapper.TbUserMapper;
import com.spring.learn.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    private TbUserMapper userMapper;

    @Override
    public TbUser queryByPrimaryKey(Long id) {
        return userMapper.selectByPrimaryKey(id);
    }
}
